package com.xyb.client;

import com.xyb.client.impl.ChartClientImpl;
import com.xyb.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @FeignClient("") 从哪个子服务调用
 * 值就是对应子服务上的 application name,就是 Eureka 上注册名称
 * spring:
 *   application:
 *     name: biz-chart
 */
@FeignClient(value = "biz-chart",fallback = ChartClientImpl.class)
public interface ChartClient {

    @GetMapping("/web/charts")
    public Result selectBizChart();

}